#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
int main(void)
{
    double payable, payment;
    printf("please input payable;");
    scanf("%lf", &payable);
    switch ((int)payable / 500)
    {
    case 0: payment = 0;
        break;
    case 1: payment = 0.02 * payable;
        break;
    case 2:
    case 3: payment = 0.05 * payable;
        break;
    case 4:
    case 5: payment = 0.08 * payable;
        break;
    default: payment = 0.1 * payable;

    }
    printf("payment:%.2f\n", payment);
    return 0;



}


